module.exports = {
  descripts: 'typeOrm',
  sharedModuleLibModules: `
  TypeOrmModule.forRootAsync({
    imports: [ConfigModule],
    useFactory: (configService: ConfigService<ConfigurationKeys>) => ({
      type: 'mysql',
      host: configService.get<string>('mysql.host'),
      port: configService.get<number>('mysql.port'),
      username: configService.get<string>('mysql.user'),
      password: configService.get<string>('mysql.password'),
      database: configService.get<string>('mysql.database'),
      autoLoadEntities: true,
      synchronize: true
    }),
    inject: [ConfigService],
  }),
  `,
  sharedModuleImport:`
  import { TypeOrmModule } from '@nestjs/typeorm'
  `,
  callback({ targetPath, config, ejsData }) {}
}
